{% extends '../../../layout/admin-base.html' %}
<script src="{{ assets_path("js/base.js")}}"></script>
{% block page %}
<h3 class="page-title">
    维修人员信息 <small>编辑</small>
</h3>
<ul class="breadcrumb">
    <li>
        <i class="icon-home"></i>
        <a href="index.html">基本信息管理</a> 
        <i class="icon-angle-right"></i>
    </li>
    <li>
        <a href="{{url('admin/user/repairman')}}">维修人员信息管理</a>
        <i class="icon-angle-right"></i>
    </li>
    <li><span>编辑</span></li>
</ul>
{% end%}
{% block content %}

<div class="row-fluid">
    <div class="span12">
        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption"><i class="icon-plus"></i>编辑维修人员</div>
                <div class="tools">
                    <a href="javascript:;" class="collapse"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->
                <form action="{{url('admin/user/repairman/edit')}}" method="post" class="form-horizontal">
                    <input type="hidden" name="manId" value="{{man_info['Fid']}}" />
                    <div class="control-group">
                        <label class="control-label">维修人员姓名<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" class="span6 m-wrap" name="manName" value="{{man_info['Fname']}}" />
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">登录用户名<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" class="span6 m-wrap" name="username" value="{{login_info['Fuser_name']}}"/>
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label">手机号<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" class="span6 m-wrap"  name="tel" value="{{man_info['Ftel']}}"/>
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">维修类型</label>
                        <div class="controls">
                            <select class="span6 m-wrap" data-placeholder="选择类型" tabindex="1" name="workId">
                                    {%for key in type_list%}
                                        {% if key == str(man_info['Fwork_id'])%}
                                        <option value="{{key}}" selected="selected">{{type_list[key]}}</option>
                                        {% else %}
                                        <option value="{{key}}">{{type_list[key]}}</option>
                                        {% end %}
                                    {%end %}
                            </select>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn blue">保存</button>
                    </div>
                </form>
                <!-- END FORM--> 
            </div>
        </div>
    </div>
</div>
{% end%}